﻿using System;
using System.Collections.Generic;

namespace LibraryApi
{
    public static class IEnumerableEx
    {
        public static bool Exists<T>(this IEnumerable<T> items, 
			Func<T, bool> funct = null)
        {
            foreach (var item in items)
                if (funct == null || funct(item))
                    return true;
            return false;
        }
    }
}
